home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 6 / Amiga Format AFCD06 (Nov 1996, Issue 90).iso / serious / commercial / xfa_devkit / c / libraries / xfa.h
C/C++ Source or Header  |  1995-05-02  |  1KB  |  50 lines

  1.  
  2.  
  3. /* XFA_PackMode flags / bitfields */
  4. #define    XFA_MODE16        0x0L            /* 00 compression 16 Bit */
  5. #define    XFA_MODE16I        0x1L            /* 01 compression 16 Bit Interlace */
  6. #define    XFA_MODE32        0x2L            /* 10 compression 32 Bit */
  7. #define    XFA_MODE32I        0x3L            /* 11 compression 32 Bit Interlace */
  8. #define    XFA_MODEI        0x1L            /* 01 mask for lace cunning mode */
  9.  
  10. /* XFA close mode definitions */
  11. #define    CLOSE_BLANK        0L            /* close animation with blank frame */
  12. #define    CLOSE_LOOP        1L            /* close animation with loop frame */
  13.  
  14.  
  15. struct rgb                    /* RGB colour triplet */
  16. {
  17.     SHORT    r;                    /* 16 bit right-justified red (0-255) */
  18.     SHORT    g;                    /* 16 bit right-justified red (0-255) */
  19.     SHORT    b;                    /* 16 bit right-justified red (0-255) */
  20. };
  21.  
  22.  
  23. struct Mem                /* memory chunk addressing struct */
  24. {
  25.     VOID *Ptr;            /* pointer to chunk */
  26.     LONG Size;            /* chunk size in bytes */
  27. };
  28.  
  29.  
  30. struct XFA_Head            /* header of IFF-XFA file */
  31. {
  32.     SHORT    BytesPerRow;    /* bytes per rasterline */
  33.     SHORT    Rows;                /* bitmap rasterlines */
  34.     LONG    ModeID;            /* graphics display mode */
  35.     UBYTE    Depth;            /* n. of bitplanes for bitmap */
  36.     UBYTE Flags;            /* compression mode (XFA_MODE#?) */
  37.     LONG    NFrames;            /* number of animation frames */
  38. };
  39.  
  40.  
  41. struct XFA_CMap            /* colormap of IFF-XFA file */
  42. {
  43.     SHORT    NumCols;            /* n. of used colours */
  44.     SHORT    FirstCol;        /* id of first colour */
  45.     struct rgb Pal[256];    /* colour registers */
  46.     LONG    Zero;                /* set to 0 */
  47. };
  48.  
  49.  
  50.